package com.always.electrical.energy.web.req;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 微网系统 储能充电阈值
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class MicrogridThresholdChargeReq extends WebRequest {

    private List<Item> items = new ArrayList<>();

    @Data
    @Accessors(chain = true)
    public static class Item implements Serializable {

        /**
         * 设备ID
         */
        private BigDecimal id;

        /**
         * 储能充电阈值 范围[0,1]
         */
        private String charge;
    }
}
